package vip.liux.front.domain.models.chat;

import org.springframework.stereotype.Service;
import org.springframework.transaction.PlatformTransactionManager;
import vip.liux.users.IUserData;
import vip.liux.users.UserLookupService;

@Service
public class ChatUserLookupService extends UserLookupService<Long, ChatUser, IChatUserRepository> implements IChatUserLookupService {

    public ChatUserLookupService(IChatUserRepository userRepository, PlatformTransactionManager transactionManager) {
        super(userRepository, transactionManager);
    }

    @Override
    protected ChatUser createUser(IUserData<Long> userData) {
        return new ChatUser(userData);
    }
}
